package org.example;

import org.example.config.AppConfig;
import org.example.service.OrderService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        OrderService orderService = context.getBean(OrderService.class);

        orderService.add("手机", 2);
        orderService.delete("手机");
        orderService.find("手机");

        context.close();
    }
}